package com.example.entity.matirx;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 取样记录
 */
@ApiModel(description = "取样记录")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "keep_get_record")
public class KeepGetRecord implements Serializable {
    /**
     * 取样记录id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "取样记录id",example = "1")
    private Integer id;

    /**
     * 模号
     */
    @TableField(value = "moudle_id")
    @ApiModelProperty(value = "模号")
    private String moudleId;

    /**
     * 机台号
     */
    @TableField(value = "table_id")
    @ApiModelProperty(value = "机台号",example = "1")
    private Integer tableId;

    /**
     * 取样时间
     */
    @TableField(value = "get_time")
    @ApiModelProperty(value = "取样时间")
    private LocalDateTime getTime;

    /**
     * 状态，1 已归还 2未归还
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "状态，1 已归还 2未归还",example = "1")
    private Integer status;

    /**
     * 归还时间
     */
    @TableField(value = "back_time")
    @ApiModelProperty(value = "归还时间")
    private LocalDateTime backTime;

    /**
     * 归还时模具是否完好 1OK 2 NG
     */
    @TableField(value = "back_ok")
    @ApiModelProperty(value = "归还时模具是否完好 1 OK 2 NG",example = "1")
    private Integer backOk;

    /**
     * 记录创建时间
     */
    @TableField(value = "creat_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "记录创建时间")
    private LocalDateTime creatTime;

    /**
     * 创建人
     */
    @TableField(value = "creator",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人")
    private String creator;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 更新人
     */
    @TableField(value = "updater",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新人")
    private String updater;

    private static final long serialVersionUID = 1L;
}